package com.finger.gulimall.search.feign;

import com.finger.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-product")
public interface ProductRemoteService {

    @GetMapping("product/attr/getAttrName")
    public R getAttrName(@RequestParam("attrId") Long attrId);

    @GetMapping("product/brand/getBrandName")
    public R getBrandName(@RequestParam("brandId") Long brandId);
}
